﻿<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ page import="java.util.Iterator" %>
<%@ page import="java.util.HashSet" %>
<%@ page import="java.util.Set" %>
<%@ page import="com.CGFrame.struts.POJOs.Catemodel" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<html:html>
<script type="text/javascript" src="pOperate/Bs_Tree.class.js"></script>
<script type="text/javascript" src="pOperate/Bs_TreeElement.class.js"></script>
<script type="text/javascript" src="pOperate/Bs_Array.class.js"></script>
<head>
		<META http-equiv=Content-Type content="text/html; charset=utf-8">
		<LINK href="../styles/sciencee.css"  type=text/css rel=stylesheet>
		<LINK href="xtree.css"  type=text/css rel=stylesheet>
		<style type="text/css"></style>
		<title>CGProject</title>
		<html:base/>
</head>
  
  
  <script language="javascript">
  function init()
  {
	<logic:notEmpty name="ScheduleTasks">
	  	<logic:iterate id="element" name="ScheduleTasks">
			document.test.setName('<bean:write name="element" property="description"/> ');
			document.test.setStartTime('<bean:write name="element" property="STime"/> ');
			document.test.setEndTime('<bean:write name="element" property="ETime"/> ');
			document.test.setTips('<bean:write name="element" property="tip"/> ');
			document.test.setPercent('<bean:write name="element" property="percent"/> ');
			document.test.addScheduleTask();
		 </logic:iterate>
		 
		<logic:iterate id="element" name="ActualTasks">
			document.test.setName('<bean:write name="element" property="description"/> ');
			document.test.setStartTime('<bean:write name="element" property="STime"/> ');
			document.test.setEndTime('<bean:write name="element" property="ETime"/> ');
			document.test.setTips('<bean:write name="element" property="tip"/> ');
			document.test.setPercent('<bean:write name="element" property="percent"/> ');
			document.test.addActualTask();
		 </logic:iterate> 
		 
		 
 	 	document.test.drawChart(); 	
	</logic:notEmpty>
  }	
  </script>
  
  
  <body onLoad="init()">
  	
    <logic:notEmpty name="Error">
		<bean:write name="Error"/>
  	</logic:notEmpty>
	<table width="100%">
	<tr>
		<td width="90%"> 
		<applet ID="test" Name="test" code="com.CGFrame.gantt.GanttApplet" archive="../lib/classes.jar,../lib/jfreechart-1.0.5.jar,../lib/jcommon-1.0.9.jar" width="100%" height="300"></applet>
		</td>
		<td width="10%">
			<a href="../categorySet/showmodel.do?ganttrelation=1&Type=<%=request.getAttribute("Type")%>&ObjectID=<%=request.getAttribute("ObjectID") %>"><u><bean:message key="model"/></u></a><br>
		</td>
	</tr>
	</table>
  </body>
 
  
</html:html>